/* 登录页面科技风背景动画样式 */

/* 科技风光点闪烁动画 */
@keyframes sparkle {
  0%, 100% { 
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

/* 线条流动动画 */
@keyframes lineFlow {
  0% {
    transform: translateX(-100%) translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) translateY(100vh);
    opacity: 0;
  }
}

/* 粒子浮动动画 */
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}

/* 网格移动动画 */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* 电路线条动画 */
@keyframes circuitFlow {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.3;
  }
}

/* 光束扫描动画 */
@keyframes scanLine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* 科技风光点 */
.tech-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
  animation: sparkle 2s ease-in-out infinite;
  pointer-events: none;
}

.tech-dot:nth-child(2n) {
  background: #0099ff;
  box-shadow: 0 0 10px #0099ff, 0 0 20px #0099ff, 0 0 30px #0099ff;
  animation-delay: 0.5s;
}

.tech-dot:nth-child(3n) {
  background: #6600ff;
  box-shadow: 0 0 10px #6600ff, 0 0 20px #6600ff, 0 0 30px #6600ff;
  animation-delay: 1s;
}

/* 流动线条 */
.flow-line {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, 
    transparent, 
    #00ffff 50%, 
    transparent);
  animation: lineFlow 4s linear infinite;
  pointer-events: none;
}

.flow-line:nth-child(2n) {
  background: linear-gradient(to bottom, 
    transparent, 
    #0099ff 50%, 
    transparent);
  animation-delay: 1s;
}

.flow-line:nth-child(3n) {
  background: linear-gradient(to bottom, 
    transparent, 
    #6600ff 50%, 
    transparent);
  animation-delay: 2s;
}

/* 粒子效果 */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00ffff;
  border-radius: 50%;
  animation: particleFloat 8s linear infinite;
  pointer-events: none;
}

.particle:nth-child(2n) {
  background: #0099ff;
  animation-delay: 2s;
}

.particle:nth-child(3n) {
  background: #6600ff;
  animation-delay: 4s;
}

.particle:nth-child(4n) {
  background: #ffffff;
  animation-delay: 6s;
}

/* 扫描线 */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent,
    #00ffff 50%,
    transparent);
  animation: scanLine 6s ease-in-out infinite;
  pointer-events: none;
}

/* 按钮科技风格 */
.login-button {
  transition: all 0.3s ease !important;
  border: 1px solid rgba(0, 255, 255, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.login-button:hover::before {
  left: 100%;
}

.login-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4) !important;
  border-color: #00ffff !important;
}

/* 卡片科技风格 */
.login-card {
  backdrop-filter: blur(10px);
  background: rgba(10, 25, 47, 0.9) !important;
  border: 1px solid rgba(0, 255, 255, 0.2) !important;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* 输入框科技风格 */
.login-input {
  border: 1px solid rgba(0, 255, 255, 0.3) !important;
  background-color: rgba(10, 25, 47, 0.8) !important;
  color: #ffffff !important;
}

.login-input:focus,
.login-input:hover {
  border-color: rgba(0, 255, 255, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.1) !important;
  background-color: rgba(10, 25, 47, 0.9) !important;
}

.login-input input {
  color: #ffffff !important;
  background: transparent !important;
}

.login-input .ant-input {
  color: #ffffff !important;
  background: transparent !important;
}

.login-input .ant-input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* 标签文字科技风格 */
.ant-form-item-label > label {
  color: #00ffff !important;
  font-weight: 500 !important;
}

/* 图标颜色 */
.login-icon {
  color: #00ffff !important;
}

/* 标题科技风格 */
.tech-title {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

.tech-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
} 